using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;    
using System.Data.Linq.Mapping;
using System.Data.Linq;

namespace MRSite.Entity  
{
    /// <summary>
    /// 店铺类型-店铺级别
    /// </summary>
     [Table(Name = "shop_type")] 
	 public class ShopType : Entity
    { 
		/// <summary>
		///
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; } 

		/// <summary>
		///标题
		/// </summary>
		[Column(Name = "title")]
		public String title{ get; set; } 

	 
		/// <summary>
		///排序(未使用)
		/// </summary>
		[Column(Name = "sort_id")]
		public int sort_id{ get; set; } 

	 
		/// <summary>
		///外部链接
		/// </summary>
		[Column(Name = "link_url")]
		public String link_url{ get; set; } 

		/// <summary>
		///图片地址
		/// </summary>
		[Column(Name = "img_url")]
		public String img_url{ get; set; } 

		/// <summary>
		///内容
		/// </summary>
		[Column(Name = "contents")]
		public String contents{ get; set; }




        /// <summary>
        /// 需缴纳的费用 元/年
        /// </summary>
        [Column(Name = "shopAmount")]
        public decimal shopAmount { get; set; }

            /// <summary>
        /// 保证金
        /// </summary>
        [Column(Name = "baozhengjin")]
        public decimal baozhengjin { get; set; }

         

        /// <summary>
        /// 扣除的服务费
        /// </summary>
        [Column(Name = "fuwufei")]
        public decimal fuwufei { get; set; }


        /// <summary>
        /// 货款结算现金部分 百分比
        /// </summary>
        [Column(Name = "shopBalancePer")]
        public decimal shopBalancePer { get; set; }

        /// <summary>
        /// 货款结算折扣部分 百分比
        /// </summary>
        [Column(Name = "shopHongbaoPer")]
        public decimal shopHongbaoPer { get; set; }

       
        /// <summary>
        ///  优惠折扣最多设置百分比
        /// </summary>
        [Column(Name = "maxhongbaoPer")]
        public decimal maxhongbaoPer { get; set; }

        /// <summary>
        /// 个人获得红包 百分比 -购物消费奖励
        /// </summary>
        [Column(Name = "hongbao_per")]
        public decimal hongbao_per { get; set; }

        /// <summary>
        /// 直推人获得奖励 (红包)-购物消费奖励
        /// </summary>
        [Column(Name = "hongbao_zhitui")]
        public decimal hongbao_zhitui { get; set; }

        /// <summary>
        /// 批发商获得奖励  (红包)-购物消费奖励
        /// </summary>
        [Column(Name = "hongbao_pfs")]
        public decimal hongbao_pfs { get; set; }
        /// <summary>
        /// 爱心公益帐户  (红包)-购物消费奖励
        /// </summary>
        [Column(Name = "hongbao_aixin")]
        public decimal hongbao_aixin { get; set; }


        /// <summary>
        /// 个人获得贡献值 零售价的倍数 -购物消费奖励
        /// </summary>
        [Column(Name = "score_beishu")]
        public decimal score_beishu { get; set; }

        /// <summary>
        /// 个人获得贡献值 总红包值的倍数 -购物消费奖励
        /// </summary>
        [Column(Name = "score_hbbs")]
        public decimal score_hbbs { get; set; }


        /// <summary>
        /// 批发商获得奖励 (贡献值)-购物消费奖励 8%
        /// </summary>
        [Column(Name = "score_pfs")]
        public decimal score_pfs { get; set; }

        /// <summary>
        /// 服务网点获得奖励 (贡献值)-购物消费奖励 8%
        /// </summary>
        [Column(Name = "score_service")]
        public decimal score_service { get; set; }

        /// <summary>
        /// 企业店招商人获得奖励 (贡献值)-购物消费奖励 2%
        /// </summary>
        [Column(Name = "score_zhaosr")]
        public decimal score_zhaosr { get; set; }


           /// <summary>
        /// 最多允许上传产品数量 
        /// </summary>
        [Column(Name = "procount")]
        public int procount { get; set; }
         


        private EntitySet<Shop> _shopList;
        /// <summary>
        /// 店铺
        /// </summary>
        [Association(Storage = "_shopList", ThisKey = "id", OtherKey = "type_id")]
        public EntitySet<Shop> ShopList
        {
            get { return this._shopList; }
            set { this._shopList.Assign(value); }
        }

        public ShopType()
        {
            this._shopList = new EntitySet<Shop>();
        }
	 } 
}    


